/**
 * Created by 春旺 on 2017/3/23.
 */
//********************************************************************************************************************
//  NumberGame415.java        Java Foundations
//*********************************************************************************************************************
import java.util.Scanner;
import java.util.Random;

public class NumberGame415
{
    public static void main(String[] args)
    {
        int answer1, answer2, answer3;
        String another = "y";
        Scanner scan = new Scanner(System.in);

            Random generates = new Random();

            answer1 = generates.nextInt(10);
            answer2 = generates.nextInt(10);
            answer3 = generates.nextInt(10);
        while (another.equalsIgnoreCase("y"));
        {
            System.out.print(answer1 + answer2 +answer3);
            if (answer1 == answer2 && answer1 == answer3)

                System.out.println("There are three number is same");
            else{ if (answer1 == answer2 || answer1 == answer3 || answer2 == answer3)
                System.out.println("There are two number is same");
            else
                System.out.println("There are no number is same");

               System.out.println("Play another game(y/n)");

              another = scan.nextLine();}
    }
    }
}
